package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeaShopCustomerMapper;
import com.ruoyi.system.domain.TeaShopCustomer;
import com.ruoyi.system.service.ITeaShopCustomerService;
import com.ruoyi.common.core.text.Convert;

/**
 * 顾客信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Service
public class TeaShopCustomerServiceImpl implements ITeaShopCustomerService 
{
    @Autowired
    private TeaShopCustomerMapper teaShopCustomerMapper;

    /**
     * 查询顾客信息
     * 
     * @param id 顾客信息主键
     * @return 顾客信息
     */
    @Override
    public TeaShopCustomer selectTeaShopCustomerById(Long id)
    {
        return teaShopCustomerMapper.selectTeaShopCustomerById(id);
    }

    /**
     * 查询顾客信息列表
     * 
     * @param teaShopCustomer 顾客信息
     * @return 顾客信息
     */
    @Override
    public List<TeaShopCustomer> selectTeaShopCustomerList(TeaShopCustomer teaShopCustomer)
    {
        return teaShopCustomerMapper.selectTeaShopCustomerList(teaShopCustomer);
    }

    /**
     * 新增顾客信息
     * 
     * @param teaShopCustomer 顾客信息
     * @return 结果
     */
    @Override
    public int insertTeaShopCustomer(TeaShopCustomer teaShopCustomer)
    {
        return teaShopCustomerMapper.insertTeaShopCustomer(teaShopCustomer);
    }

    /**
     * 修改顾客信息
     * 
     * @param teaShopCustomer 顾客信息
     * @return 结果
     */
    @Override
    public int updateTeaShopCustomer(TeaShopCustomer teaShopCustomer)
    {
        return teaShopCustomerMapper.updateTeaShopCustomer(teaShopCustomer);
    }

    /**
     * 批量删除顾客信息
     * 
     * @param ids 需要删除的顾客信息主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopCustomerByIds(String ids)
    {
        return teaShopCustomerMapper.deleteTeaShopCustomerByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除顾客信息信息
     * 
     * @param id 顾客信息主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopCustomerById(Long id)
    {
        return teaShopCustomerMapper.deleteTeaShopCustomerById(id);
    }
}
